home *** CD-ROM | disk | FTP | other *** search
/ 3D Images / 3D Images.iso / programs / amiga / rayshade / libshade / symtab.h < prev    next >
C/C++ Source or Header  |  1995-01-12  |  1KB  |  62 lines

  1. /*
  2.  * symtab.h
  3.  *
  4.  * Copyright (C) 1989, 1991, Craig E. Kolb, Rod G. Bogart
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  * 
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  * symtab.h,v 4.1 1994/08/09 08:05:09 explorer Exp
  17.  *
  18.  * symtab.h,v
  19.  * Revision 4.1  1994/08/09  08:05:09  explorer
  20.  * Bump version to 4.1
  21.  *
  22.  * Revision 1.1.1.1  1994/08/08  04:52:19  explorer
  23.  * Initial import.  This is a prerelease of 4.0.6enh3, or 4.1 possibly.
  24.  *
  25.  * Revision 4.0  91/07/17  14:48:12  kolb
  26.  * Initial version.
  27.  * 
  28.  */
  29.  
  30. #ifndef SYMTAB_H
  31. #define SYMTAB_H
  32.  
  33. typedef Float (*FloatFuncPtr)();
  34.  
  35. struct SymtabPredefinedEntry {
  36.     char * name;
  37.     Float f;
  38.     FloatFuncPtr fp;
  39.     int type;
  40.     int timevary;
  41.     int params;
  42. };
  43.  
  44. typedef    union {
  45.     Float (*fp)();
  46.     Expr *expr;
  47. } SymtabValue;
  48.  
  49. typedef struct SymtabEntry {
  50.     char     *name;
  51.     SymtabValue value;
  52.     int type;
  53.     int timevary;
  54.     int params;
  55.     struct SymtabEntry *next;
  56. } SymtabEntry;
  57.  
  58. extern Expr *ExprFloatSymtabFind();
  59. extern SymtabEntry *SymtabFind(), *SymtabBuiltinFind();
  60.  
  61. #endif /* SYMTAB_H */
  62.